package com.fionera.sample.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class UserBean implements Parcelable {
    private String userId;
    private String userName;
    private String realName;
    private String phone;
    private String receiveMsg;
    private String avatar;
    private String passwordStatus;
    private String department;
    private String userType;
    private String orgId;
    private List<String> authority;
    private String roleName;

    private String equipRepairStatus;

    public String getRoleName(){return roleName;}

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getId() {
        return userId;
    }

    public void setId(String id) {
        this.userId = id;
    }

    public String getUsername() {
        return userName;
    }

    public void setUsername(String username) {
        this.userName = username;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getPasswordStatus() {
        return passwordStatus;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public void setPasswordStatus(String passwordStatus) {
        this.passwordStatus = passwordStatus;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public List<String> getAuthority() {
        return authority;
    }

    public void setAuthority(List<String> authority) {
        this.authority = authority;
    }

    public String getEquipRepairStatus() {
        return equipRepairStatus;
    }

    public void setEquipRepairStatus(String equipRepairStatus) {
        this.equipRepairStatus = equipRepairStatus;
    }

    public String getReceiveMsg() {
        return receiveMsg;
    }

    public void setReceiveMsg(String receiveMsg) {
        this.receiveMsg = receiveMsg;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.userId);
        dest.writeString(this.roleName);
        dest.writeString(this.userName);
        dest.writeString(this.realName);
        dest.writeString(this.phone);
        dest.writeString(this.receiveMsg);
        dest.writeString(this.avatar);
        dest.writeString(this.passwordStatus);
        dest.writeString(this.department);
        dest.writeString(this.orgId);
        dest.writeString(this.equipRepairStatus);
    }

    public UserBean() {
    }

    protected UserBean(Parcel in) {
        this.roleName = in.readString();
        this.userId = in.readString();
        this.userName = in.readString();
        this.realName = in.readString();
        this.phone = in.readString();
        this.receiveMsg = in.readString();
        this.avatar = in.readString();
        this.passwordStatus = in.readString();
        this.department = in.readString();
        this.orgId = in.readString();
        this.equipRepairStatus = in.readString();
    }

    public static final Creator<UserBean> CREATOR = new Creator<UserBean>() {
        @Override
        public UserBean createFromParcel(Parcel source) {
            return new UserBean(source);
        }

        @Override
        public UserBean[] newArray(int size) {
            return new UserBean[size];
        }
    };
}
